home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1993 September
/
September 93.iso
/
Archives
/
Utilities
/
System
/
Utility Collections
/
SuperScrew
/
HangUp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-28
|
897b
|
45 lines
#include<Serial.h>
main()
{
short aOutRefNum, aInRefNum, bufferCnt, len;
char *send;
SysPPtr pSysParms;
pSysParms = GetSysPPtr ( );
if (pSysParms->aTalkA)
{
aOutRefNum = -7;
aInRefNum = -6;
len = 3;
if (SerSetBuf( aOutRefNum, send, 3 ))
{ SysBeep( 0 );
return;
}
strcpy ( send , "+++" );
if (FSWrite( aOutRefNum, &len, send))
{ SysBeep( 0 );
return;
}
len = 5;
if (SerSetBuf( aOutRefNum, send, len ))
{ SysBeep( 0 );
return;
}
strcpy ( send , "ATH\r" );
if (FSWrite( aOutRefNum, &len, send))
{ SysBeep( 0 );
return;
}
RAMSDClose(sPortA);
return;
}
return;
}